package com.czwj.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.czwj.entities.Project;


public interface ProjectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Project record);

    int insertSelective(Project record);

    Project selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Project record);

    int updateByPrimaryKey(Project record);
    
    List<Project> findByUser(int id);
    
    List<Project> findByRole(int id);
    
    List<Project> search(Map<String, Object> params);
    
    int getTotal(Map<String, Object> params);

	int getMaxSort(int supperid);

	Project findBySort(@Param("supperid")int supperid,@Param("sort")int sort);

	int deleteBySupper(int sid);
	
	List<Project> findVigilanceItem(int userid);

}